<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>我的钱包 - 奢享时光</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
  <style>
    :root {
      --primary-gradient: linear-gradient(135deg, #7F00FF, #E100FF);
      --secondary-gradient: linear-gradient(135deg, #00F5A0, #00D9F5);
      --primary-color: #7F00FF;
      --secondary-color: #00F5A0;
      --accent-color: #FFE600;
      --dark-bg: #2D1B69;
      --light-bg: #6B3FA0;
      --text-light: #FFFFFF;
      --text-secondary: #E0D5FF;
      --card-bg: rgba(255, 255, 255, 0.1);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      --border-radius: 16px;
      --border: 1px solid rgba(255, 255, 255, 0.18);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: 'Noto Sans SC', 'Poppins', sans-serif;
      background: var(--dark-bg);
      color: var(--text-light);
      font-size: 14px;
      line-height: 1.5;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      outline: none;
    }

    .app-container {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      background: linear-gradient(180deg, var(--dark-bg), var(--light-bg));
      position: relative;
      overflow: hidden;
      padding-bottom: 70px;
    }

    /* 背景装饰 */
    .bg-decoration {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-circle {
      position: absolute;
      border-radius: 50%;
    }

    .bg-circle:nth-child(1) {
      width: 300px;
      height: 300px;
      top: -150px;
      right: -100px;
      background: radial-gradient(circle, rgba(225, 0, 255, 0.2), rgba(225, 0, 255, 0));
    }

    .bg-circle:nth-child(2) {
      width: 250px;
      height: 250px;
      bottom: 10%;
      left: -100px;
      background: radial-gradient(circle, rgba(0, 245, 160, 0.15), rgba(0, 245, 160, 0));
    }

    /* 顶部导航 */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: rgba(45, 27, 105, 0.8);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: var(--border);
    }

    .back-button {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .page-title {
      font-size: 18px;
      font-weight: 600;
    }

    .header-actions {
      display: flex;
      gap: 15px;
    }

    .header-actions i {
      font-size: 18px;
      color: var(--text-light);
      opacity: 0.9;
    }

    /* 内容区域 */
    .content {
      position: relative;
      z-index: 1;
      padding: 20px;
    }

    /* 钱包卡片 */
    .wallet-card {
      background: var(--primary-gradient);
      border-radius: var(--border-radius);
      padding: 25px 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }

    .card-bg-element {
      position: absolute;
      opacity: 0.1;
    }

    .card-bg-element:nth-child(1) {
      right: -20px;
      top: -20px;
      font-size: 120px;
      transform: rotate(15deg);
    }

    .card-bg-element:nth-child(2) {
      left: 20px;
      bottom: -30px;
      font-size: 100px;
      transform: rotate(-10deg);
    }

    .wallet-title {
      font-size: 16px;
      color: var(--text-secondary);
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .wallet-balance {
      font-size: 36px;
      font-weight: 700;
      margin-bottom: 5px;
    }

    .wallet-label {
      font-size: 14px;
      opacity: 0.8;
    }

    .wallet-actions {
      display: flex;
      gap: 15px;
      margin-top: 20px;
    }

    .wallet-button {
      flex: 1;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 100px;
      padding: 10px;
      text-align: center;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .wallet-button:active {
      transform: scale(0.97);
      background: rgba(255, 255, 255, 0.3);
    }

    /* 资产区域 */
    .assets-section {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .section-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-title::before {
      content: '\f54e';
      font-family: 'Font Awesome 5 Free';
      color: var(--accent-color);
    }

    .assets-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
    }

    .asset-item {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
      text-align: center;
      transition: all 0.3s ease;
    }

    .asset-item:active {
      transform: scale(0.97);
    }

    .asset-icon {
      margin-bottom: 10px;
      font-size: 20px;
      color: var(--accent-color);
    }

    .asset-info {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .asset-count {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-light);
    }

    .asset-name {
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* 交易记录 */
    .transactions-section {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }

    .tab {
      padding: 5px 15px;
      border-radius: 100px;
      background: rgba(255, 255, 255, 0.05);
      font-size: 13px;
      color: var(--text-secondary);
      transition: all 0.3s ease;
    }

    .tab.active {
      background: var(--primary-gradient);
      color: var(--text-light);
    }

    .transaction-item {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 15px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      margin-bottom: 12px;
    }

    .transaction-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .transaction-icon.income {
      color: var(--secondary-color);
    }

    .transaction-icon.outcome {
      color: var(--accent-color);
    }

    .transaction-details {
      flex: 1;
    }

    .transaction-title {
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 3px;
    }

    .transaction-time {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .transaction-amount {
      font-size: 16px;
      font-weight: 600;
    }

    .transaction-amount.income {
      color: var(--secondary-color);
    }

    .transaction-amount.outcome {
      color: var(--accent-color);
    }

    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-width: 480px;
      margin: 0 auto;
      background: rgba(45, 27, 105, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: var(--border);
      display: flex;
      justify-content: space-around;
      padding: 12px 0;
      z-index: 100;
    }

    .nav-button {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      color: var(--text-secondary);
      font-size: 12px;
      padding: 5px 0;
      flex: 1;
      transition: all 0.3s ease;
    }

    .nav-button i {
      font-size: 18px;
      margin-bottom: 2px;
    }

    .nav-button.active {
      color: var(--accent-color);
    }

    /* 弹窗 */
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

    .modal.active {
      opacity: 1;
      visibility: visible;
    }

    .modal-content {
      background: var(--dark-bg);
      border-radius: var(--border-radius);
      width: 90%;
      max-width: 320px;
      padding: 20px;
      box-shadow: var(--shadow);
      border: var(--border);
      backdrop-filter: blur(10px);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .modal-title {
      font-size: 18px;
      font-weight: 600;
    }

    .modal-close {
      font-size: 20px;
      color: var(--text-secondary);
    }

    .input-group {
      margin-bottom: 15px;
    }

    .input-label {
      font-size: 14px;
      margin-bottom: 8px;
      display: block;
    }

    .input-field {
      width: 100%;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 8px;
      padding: 12px 15px;
      font-size: 16px;
      color: var(--text-light);
      font-family: inherit;
    }

    .input-field:focus {
      outline: none;
      border-color: var(--primary-color);
    }

    .input-hint {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 5px;
    }

    .primary-button {
      width: 100%;
      background: var(--primary-gradient);
      border-radius: 100px;
      padding: 12px;
      text-align: center;
      font-size: 16px;
      font-weight: 500;
      margin-top: 20px;
      transition: all 0.3s ease;
    }

    .primary-button:active {
      transform: scale(0.97);
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 背景装饰 -->
    <div class="bg-decoration">
      <div class="bg-circle"></div>
      <div class="bg-circle"></div>
    </div>

    <!-- 顶部导航 -->
    <header class="header">
      <a href="profile.html" class="back-button">
        <i class="fas fa-arrow-left"></i>
      </a>
      <div class="page-title">我的钱包</div>
      <div class="header-actions">
        <i class="fas fa-history"></i>
      </div>
    </header>

    <!-- 主要内容 -->
    <main class="content">
      <!-- 钱包卡片 -->
      <section class="wallet-card">
        <i class="fas fa-wallet card-bg-element"></i>
        <i class="fas fa-coins card-bg-element"></i>
        <div class="wallet-title">
          <i class="fas fa-wallet"></i>
          <span>我的余额</span>
        </div>
        <div class="wallet-balance">¥385.00</div>
        <div class="wallet-label">可用余额</div>
        <div class="wallet-actions">
          <div class="wallet-button" id="withdraw-btn">提现</div>
          <div class="wallet-button" id="recharge-btn">充值</div>
        </div>
      </section>

      <!-- 资产区域 -->
      <div class="assets-section">
        <div class="section-title">我的资产</div>
        <div class="assets-grid">
          <a href="assets.html?type=coupon" class="asset-item">
            <div class="asset-icon">
              <i class="fas fa-ticket-alt"></i>
            </div>
            <div class="asset-info">
              <div class="asset-count">3张</div>
              <div class="asset-name">拼团券</div>
            </div>
          </a>
          <a href="assets.html?type=star" class="asset-item">
            <div class="asset-icon">
              <i class="fas fa-star"></i>
            </div>
            <div class="asset-info">
              <div class="asset-count">2颗</div>
              <div class="asset-name">幸运星</div>
            </div>
          </a>
          <a href="assets.html?type=equity" class="asset-item">
            <div class="asset-icon">
              <i class="fas fa-chart-pie"></i>
            </div>
            <div class="asset-info">
              <div class="asset-count">1份</div>
              <div class="asset-name">股权</div>
            </div>
          </a>
        </div>
      </div>

      <!-- 交易记录 -->
      <section class="transactions-section">
        <div class="team-header">
          <div class="team-title">
            <i class="fas fa-exchange-alt"></i>
            <span>交易记录</span>
          </div>
        </div>
        <div class="tabs">
          <div class="tab active">全部</div>
          <div class="tab">收入</div>
          <div class="tab">支出</div>
        </div>
        <div class="transactions-list">
          <div class="transaction-item">
            <div class="transaction-icon income">
              <i class="fas fa-arrow-down"></i>
            </div>
            <div class="transaction-details">
              <div class="transaction-title">团队分红收益</div>
              <div class="transaction-time">2024-06-10 15:30</div>
            </div>
            <div class="transaction-amount income">+¥52.00</div>
          </div>
          <div class="transaction-item">
            <div class="transaction-icon outcome">
              <i class="fas fa-arrow-up"></i>
            </div>
            <div class="transaction-details">
              <div class="transaction-title">购买高级护肤套装</div>
              <div class="transaction-time">2024-06-05 10:15</div>
            </div>
            <div class="transaction-amount outcome">-¥1,280.00</div>
          </div>
          <div class="transaction-item">
            <div class="transaction-icon income">
              <i class="fas fa-arrow-down"></i>
            </div>
            <div class="transaction-details">
              <div class="transaction-title">股权分红</div>
              <div class="transaction-time">2024-06-01 09:00</div>
            </div>
            <div class="transaction-amount income">+¥100.00</div>
          </div>
          <div class="transaction-item">
            <div class="transaction-icon income">
              <i class="fas fa-arrow-down"></i>
            </div>
            <div class="transaction-details">
              <div class="transaction-title">团队成员购物返现</div>
              <div class="transaction-time">2024-05-25 16:45</div>
            </div>
            <div class="transaction-amount income">+¥68.00</div>
          </div>
          <div class="transaction-item">
            <div class="transaction-icon outcome">
              <i class="fas fa-arrow-up"></i>
            </div>
            <div class="transaction-details">
              <div class="transaction-title">提现到银行卡</div>
              <div class="transaction-time">2024-05-20 14:30</div>
            </div>
            <div class="transaction-amount outcome">-¥500.00</div>
          </div>
        </div>
      </section>
    </main>

    <!-- 提现弹窗 -->
    <div class="modal" id="withdraw-modal">
      <div class="modal-content">
        <div class="modal-header">
          <div class="modal-title">申请提现</div>
          <div class="modal-close" id="withdraw-close"><i class="fas fa-times"></i></div>
        </div>
        <div class="input-group">
          <div class="input-label">提现金额</div>
          <input type="number" class="input-field" placeholder="请输入提现金额">
          <div class="input-hint">可提现余额：¥385.00</div>
        </div>
        <div class="input-group">
          <div class="input-label">提现到</div>
          <select class="input-field">
            <option>微信账户</option>
            <option>支付宝</option>
            <option>银行卡</option>
          </select>
        </div>
        <div class="primary-button">确认提现</div>
      </div>
    </div>

    <!-- 充值弹窗 -->
    <div class="modal" id="recharge-modal">
      <div class="modal-content">
        <div class="modal-header">
          <div class="modal-title">账户充值</div>
          <div class="modal-close" id="recharge-close"><i class="fas fa-times"></i></div>
        </div>
        <div class="input-group">
          <div class="input-label">充值金额</div>
          <input type="number" class="input-field" placeholder="请输入充值金额">
        </div>
        <div class="input-group">
          <div class="input-label">充值方式</div>
          <select class="input-field">
            <option>微信支付</option>
            <option>支付宝</option>
            <option>银行卡</option>
          </select>
        </div>
        <div class="primary-button">确认充值</div>
      </div>
    </div>

    <!-- 底部导航 -->
    <nav class="bottom-nav">
      <a href="index.html" class="nav-button">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </a>
      <a href="groupbuy.html" class="nav-button">
        <i class="fas fa-users"></i>
        <span>拼团</span>
      </a>
      <a href="shares.html" class="nav-button">
        <i class="fas fa-chart-line"></i>
        <span>股权</span>
      </a>
      <a href="profile.html" class="nav-button active">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </a>
    </nav>
  </div>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 提现弹窗
      const withdrawBtn = document.getElementById('withdraw-btn');
      const withdrawModal = document.getElementById('withdraw-modal');
      const withdrawClose = document.getElementById('withdraw-close');
      
      withdrawBtn.addEventListener('click', function() {
        withdrawModal.classList.add('active');
      });
      
      withdrawClose.addEventListener('click', function() {
        withdrawModal.classList.remove('active');
      });
      
      // 充值弹窗
      const rechargeBtn = document.getElementById('recharge-btn');
      const rechargeModal = document.getElementById('recharge-modal');
      const rechargeClose = document.getElementById('recharge-close');
      
      rechargeBtn.addEventListener('click', function() {
        rechargeModal.classList.add('active');
      });
      
      rechargeClose.addEventListener('click', function() {
        rechargeModal.classList.remove('active');
      });
      
      // 点击弹窗外部关闭弹窗
      window.addEventListener('click', function(e) {
        if (e.target === withdrawModal) {
          withdrawModal.classList.remove('active');
        }
        if (e.target === rechargeModal) {
          rechargeModal.classList.remove('active');
        }
      });
      
      // 交易记录标签切换
      const tabs = document.querySelectorAll('.tab');
      const transactionsList = document.querySelector('.transactions-list');
      
      tabs.forEach(tab => {
        tab.addEventListener('click', function() {
          tabs.forEach(t => t.classList.remove('active'));
          this.classList.add('active');
          
          if (this.textContent === '收入') {
            transactionsList.innerHTML = `
              <div class="transaction-item">
                <div class="transaction-icon income">
                  <i class="fas fa-arrow-down"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">团队分红收益</div>
                  <div class="transaction-time">2024-06-10 15:30</div>
                </div>
                <div class="transaction-amount income">+¥52.00</div>
              </div>
              <div class="transaction-item">
                <div class="transaction-icon income">
                  <i class="fas fa-arrow-down"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">股权分红</div>
                  <div class="transaction-time">2024-06-01 09:00</div>
                </div>
                <div class="transaction-amount income">+¥100.00</div>
              </div>
              <div class="transaction-item">
                <div class="transaction-icon income">
                  <i class="fas fa-arrow-down"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">团队成员购物返现</div>
                  <div class="transaction-time">2024-05-25 16:45</div>
                </div>
                <div class="transaction-amount income">+¥68.00</div>
              </div>
            `;
          } else if (this.textContent === '支出') {
            transactionsList.innerHTML = `
              <div class="transaction-item">
                <div class="transaction-icon outcome">
                  <i class="fas fa-arrow-up"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">购买高级护肤套装</div>
                  <div class="transaction-time">2024-06-05 10:15</div>
                </div>
                <div class="transaction-amount outcome">-¥1,280.00</div>
              </div>
              <div class="transaction-item">
                <div class="transaction-icon outcome">
                  <i class="fas fa-arrow-up"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">提现到银行卡</div>
                  <div class="transaction-time">2024-05-20 14:30</div>
                </div>
                <div class="transaction-amount outcome">-¥500.00</div>
              </div>
            `;
          } else {
            transactionsList.innerHTML = `
              <div class="transaction-item">
                <div class="transaction-icon income">
                  <i class="fas fa-arrow-down"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">团队分红收益</div>
                  <div class="transaction-time">2024-06-10 15:30</div>
                </div>
                <div class="transaction-amount income">+¥52.00</div>
              </div>
              <div class="transaction-item">
                <div class="transaction-icon outcome">
                  <i class="fas fa-arrow-up"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">购买高级护肤套装</div>
                  <div class="transaction-time">2024-06-05 10:15</div>
                </div>
                <div class="transaction-amount outcome">-¥1,280.00</div>
              </div>
              <div class="transaction-item">
                <div class="transaction-icon income">
                  <i class="fas fa-arrow-down"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">股权分红</div>
                  <div class="transaction-time">2024-06-01 09:00</div>
                </div>
                <div class="transaction-amount income">+¥100.00</div>
              </div>
              <div class="transaction-item">
                <div class="transaction-icon income">
                  <i class="fas fa-arrow-down"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">团队成员购物返现</div>
                  <div class="transaction-time">2024-05-25 16:45</div>
                </div>
                <div class="transaction-amount income">+¥68.00</div>
              </div>
              <div class="transaction-item">
                <div class="transaction-icon outcome">
                  <i class="fas fa-arrow-up"></i>
                </div>
                <div class="transaction-details">
                  <div class="transaction-title">提现到银行卡</div>
                  <div class="transaction-time">2024-05-20 14:30</div>
                </div>
                <div class="transaction-amount outcome">-¥500.00</div>
              </div>
            `;
          }
        });
      });
      
      // 页面加载动画
      const sections = document.querySelectorAll('section');
      sections.forEach((section, index) => {
        section.style.opacity = '0';
        section.style.transform = 'translateY(20px)';
        section.style.transition = `opacity 0.5s ease, transform 0.5s ease`;
        
        setTimeout(() => {
          section.style.opacity = '1';
          section.style.transform = 'translateY(0)';
        }, 100 + (index * 150));
      });
    });
  </script>
</body>
</html> 